﻿using IcsSEMCtrl.Event.Device;
using Lifter.Global;
using System;

namespace TKT.Lifter.CIM.Lifter.Event.Lifter
{
    [Serializable]
    public class CimStatusEvent : DeviceEvent
    {
        private enumCimStatus Status;
        public static readonly string CLASS = "CimStatusEvent";
        public static readonly string SPECIFIC_SUBJECT = "CimStatus";
        public new static readonly string SUBJECT = DeviceEvent.SUBJECT + "." + CimStatusEvent.SPECIFIC_SUBJECT;
        public CimStatusEvent(string deviceId, string deviceType, enumCimStatus staus) : base(deviceId, deviceType)
        {
            this.Status = staus;
        }
        public new static string FormSubject(string id)
        {
            return CimStatusEvent.SUBJECT + "." + id;
        }
        public enumCimStatus CimStatus { get => Status; set => Status = value; }
    }
}
